package com.training;

//Main class
public class SampleSetOne {

//Static Block
static
	{
	System.out.println("-->Sample Set One<--");
	System.out.println("Static Block");
	}

//Static Method
static void getEmployee()
	{
	System.out.println("Inovoked Static Method");
	}

//Passing arg through main method
static void getEmployee(String name)
	{
	System.out.println("Name is "+name);
	}

    public static void main(String args[]) {
        System.out.println("Sample Set");
		getEmployee();
		getEmployee("Satheesh");
		PassingArgClassReceiver2 sender = new PassingArgClassReceiver2();
		sender.printMethod("Satheesh2");
		System.out.println("Argument from command prompt = "+args[0]);//Passing arg through command prompt

    }
}

//Passing arg to a class
class PassingArgClassReceiver2{

void printMethod(String rec){
	System.out.println("The String "+rec+" is received");
}
}